import request from '@/utils/request'

// 查询老师跟踪列表 lbj
export function listStalke(query) {
  return request({
    url: '/teaching/stalke/list',
    method: 'get',
    params: query
  })
}

// 查询老师跟踪详细
export function getStalke(id) {
  return request({
    url: '/teaching/stalke/' + id,
    method: 'get'
  })
}

// 新增老师跟踪

export function addStalke(data) {
  return request({
    url: '/teaching/stalke',
    method: 'post',
    data: data
  })
}

// 修改老师跟踪

export function updateStalke(data) {
  return request({
    url: '/teaching/stalke',
    method: 'put',
    data: data
  })
}

// 删除老师跟踪

export function delStalke(id) {
  return request({
    url: '/teaching/stalke/' + id,
    method: 'delete'
  })
}

// 查出学生列表

export function getStu() {
  return request({
    url: '/student/student/list',
    method: 'get'
  })
}

// 查出班级列表

export function getClass() {
  return request({
    url: '/student/class/list',
    method: 'get'
  })
}
// 查出老师列表

export function getteacher() {
  return request({
    url: '/teacher/findAll',
    method: 'get'
  })
}
// 根据学生id查跟踪

export function getfindByStudentId(studenId) {
  return request({
    url: '/teaching/stalke/findByStudentId/' + studenId ,
    method: 'get',
    params: studenId
  })
}
// 根据学生id查该学生的追踪历史

export function getfindListByStudentId(studenId) {
  return request({
    url: '/teaching/stalke/getfindListByStudentId/' + studenId ,
    method: 'get',
    params: studenId
  })
}
// 根据myTaskId查该学生的修改历史任务

export function gettaskupdate(data) {
  return request({
    url: '/teaching/stalke/gettaskupdate',
    method: 'POST',
    data: data
  })
}
export function getfindListmodifyHistorys(data) {
  return request({
    url: '/teaching/stalke/getfindListmodifyHistorys' ,
    method: 'POST',
    data: data
  })
}


